package com.ifnk.portaljava.hlyt.service;

import com.ifnk.portaljava.hlyt.beans.Module;
import com.ifnk.portaljava.hlyt.beans.Role;
import com.ifnk.portaljava.hlyt.beans.User;

import java.util.List;
/**
 * <p>Title:管理角色类接口 </p>
 *
 * <p>Description: </p>
 *
 * <p>Copyright: Copyright (c) 2010</p>
 *
 * <p>Company: </p>
 *
 * @author  xiaoyan.zhang.hlyt@gmail.com
 * @version 1.0
 */
public interface IRoleService {

	String add(Role role);
	
	List<Role> findAll();
	
	void deleteRole(Role role);
	
	void update(Role role);
	
	Boolean checkRoleName(String roleName,String type,Role role);
	
	List<Role> findRoleByModule(Module module);
	
	List<Role> findRoleByUser(User user);
	
	List<Role> findRoleByRole(Role role);
	
//	void addModuleToRoles(Module module,List<Role> roleList);
}
